if not dominfo:
return
print 'check_name>', 'dom=', dominfo.name, dominfo.dom, 'self=', name, self.dom
+ if dominfo.is_terminated():
+ return
if not self.dom or (dominfo.dom != self.dom):
raise VmError('vm name clash: ' + name)
try:
self.name = sxp.child_value(config, 'name')
self.check_name(self.name)
- self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
+ self.cpu_weight = float(sxp.child_value(config, 'cpu_weight'))
+ if self.restore and self.dom:
+ xc.domain_setname(self.dom, self.name)
self.memory = int(sxp.child_value(config, 'memory'))
if self.memory is None:
raise VmError('missing memory size')
if self.restart_pending():
self.console.deregisterChannel()
else:
+ log.debug('Closing console, domain %s', self.id)
self.console.close()
chan = xend.getDomChannel(self.dom)
if chan: